<template>
    <div>
{{ obj }}
    </div>
</template>

<script setup>
import {ref,reactive,toRef,toRefs} from 'vue'
//练习reactive
const obj = reactive({
    message:'不畏浮云遮望眼，自缘身在最高层'
});
console.log("obj",obj);
obj.message = "欲穷千里目，更上一层楼"
const message = toRef(obj,'message')
message.value = '少壮不努力，老大徒伤悲'
console.log('toRef',message)
let message01 = toRefs(obj)
message01.value = '即使当勉励，岁月不待人'
console.log("toRefs",message01)


</script>

<style lang="scss" scoped>

</style>